<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sd" uri="/struts-dojo-tags" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<sd:head/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
	body {
		font-size: 9pt;
	}
	table {
		font-size: 9pt;
	}
	th {
		font-weight: 500; 
		font-size: 9pt;
	}
	a:link {
		color: #dd006f; 
		text-decoration: none;
	}
	a:visited {
		text-decoration: none;
	}
	a:active {
		text-decoration: none;
	}
	a:hover {
		color: #9933ff;
		text-decoration: underline;
	}
	

.btnCode {
	background:transparent url(prettify/code.gif) no-repeat 16px 16px;
	background-position:2px 2px;
}
.btnFlv {
	background:transparent url(mediaplayer/flv.gif) no-repeat 16px 16px;
	background-position:2px 2px;
}
.btnMap {
	width:50px !important;
	background:transparent url(${pageContext.request.contextPath}/js/xheditor/xheditor_plugins/googlemap/map.gif) no-repeat center center;
}

</style>
 
<script src="${pageContext.request.contextPath}/js/JS_CheckForm.js" language="JavaScript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.2.min.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath}/js/xheditor/xheditor-1.1.6-zh-cn.min.js"></script>

<script language="JavaScript">
 $(document).ready(function()  {
	 var s1=location.pathname;
     var i=s1.indexOf('/',2);	     
     var upImgUrlstr="http://"+location.host+s1.substring(0,i)+"/xheditor";
     
		 $('#elm1').xheditor({  
		 tools:'full',  
		 skin:'default',    
		 upImgUrl: upImgUrlstr,  
		 upImgExt: "jpg,jpeg,gif,bmp,png",  
		 onUpload:insertUpload  
		 });  
		 });
 
 function insertUpload(){ alert("ok");}


</script>

<title>修改客户信息</title>
</head>

<body bgcolor="#ffffff" onload="init()" leftmargin="0" topmargin="0">

    <s:form name="upatecustomer" action="upatecustomer" method="POST" theme="simple" id="frmDemo">
	    <s:hidden name="customer.id" value="%{customer.id}"></s:hidden>
	    <s:hidden name="customer.status" value="%{customer.status}"></s:hidden>
	   <s:hidden name="customer.createdTime" value="%{customer.createdTime}"></s:hidden>
	    
  		<table height="100%" width="100%" cellspacing="1" cellpadding="2" border="0" bgcolor="#336600">
    		<tbody>
    			<tr> 
      				<td height="26" bgcolor="#669900" colspan="2">
      					<font color="#ffffff">::修改客户信息</font>
      				</td>
    			</tr>
	
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">名称：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="customer.name" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">公司：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="customer.company" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
    			</tr>
    			
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">办公室电话：</td>
      				<td height="26" width="90%"> 
      					<s:textfield name="customer.officePhone" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">移动电话：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="customer.mobilePhone" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
        			
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">家庭电话：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="customer.homePhone" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
        			
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">联系地址：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="customer.address" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        			   <font color="#ff0000">[必填]</font>
        			</td>
        			
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">生日：</td>
      				<td height="26" width="81%"> 
      				   <sd:datetimepicker name="customer.birthday" displayFormat="yyyy-MM-dd" ></sd:datetimepicker>
        			   <font color="#ff0000">[必填]</font>
        			</td>
        			
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">MSN：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="customer.msnAccount" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
        			
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">QQ：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="customer.qqAccount" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
        			
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">传真：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="customer.fax" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
        			
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">职位：</td>
      				<td height="26" width="81%"> 
      				   <s:textfield name="customer.position" cssClass="bginput" size="30" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>       			
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">负责人：</td>
      				<td height="26" width="81%"> 
      				    <s:select list="salers" listKey="id" listValue="name" name="customer.owner.id" headerkey="customer.owner.id" headervalue="customer.owner.name"></s:select>
        				<font color="#ff0000">[必填]</font>
        			</td>       			
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="19%" align="right">介绍：</td>
      				<td height="26" width="81%"> 
      				   <s:textarea name="customer.introduction" cssClass="bginput" rows="15" cols="80" id="elm1"></s:textarea>
        				<font color="#ff0000">[必填]</font>
        			</td>
        			
    			</tr>
    			
    			
    		<tr bgcolor="#eeeeee" align="center"> 
      			<td height="40" colspan="2">
      				<table width="100%" cellspacing="0" cellpadding="5" border="0">
          				<tbody>
          					<tr> 
            					<td height="50" align="center"> 
            					   <s:submit></s:submit>
            					   <!-- 
              						<input type="submit" value="　保　存　" class="button" name="submit">
              						 -->
              						<input type="button" onclick="history.go(-1);" value="　返 回　" class="button" name="YL">
              					</td>
          					</tr>
        				</tbody>
        			</table>
        		</td>
    		</tr>
  		</tbody>
  	</table>
</s:form>
<iframe height="0" width="0" src="about:blank" name="BackFrame"></iframe>
<div id="livemargins_control" style="position: absolute; display: none; z-index: 9999;">
	<img height="5" width="77" style="position: absolute; left: -77px; top: -5px;" src="chrome://livemargins/skin/monitor-background-horizontal.png">
	<img style="position: absolute; left: 0pt; top: -5px;" src="chrome://livemargins/skin/monitor-background-vertical.png">
	<img style="position: absolute; left: 1px; top: 0pt; opacity: 0.5; cursor: pointer;" onmouseout="this.style.opacity=0.5" onmouseover="this.style.opacity=1" src="chrome://livemargins/skin/monitor-play-button.png" id="monitor-play-button">
</div>
</body>
</html>